package com.imut.oa.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.imut.oa.common.PageResult;
import com.imut.oa.pojo.dto.DepartmentAddDTO;
import com.imut.oa.pojo.dto.DepartmentPageQueryDTO;
import com.imut.oa.pojo.entity.Departments;

public interface DepartmentService extends IService<Departments> {
    /**
     * 部门分页查询
     * @param departmentPageQueryDTO
     * @return
     */
    PageResult page(DepartmentPageQueryDTO departmentPageQueryDTO);

    /**
     * 部门添加
     * @param departmentAddDTO
     */
    void save(DepartmentAddDTO departmentAddDTO);

    void updateDepartment(DepartmentAddDTO departmentAddDTO);

    void removeDepartmentById(Long id);
}
